//
//  HLEDownloadRequest.h
//  HLENetwork_Example
//
//  Created by hle1879 on 2020/10/10.
//  Copyright © 2020 13434436448@163.com. All rights reserved.
//

#import "HLEBaseRequest.h"

NS_ASSUME_NONNULL_BEGIN

@interface HLEDownloadRequest : HLEBaseRequest

///文件下载的路径  默认Download文件夹
@property (nonatomic,copy) NSString *folderName;

///下载进度的回调
@property (nonatomic,copy) HLENetWorkProgress progress;

///断点下载
- (void)sendRequestWithResumeData:(NSData * _Nonnull)resumeData;

///暂停下载
- (void)suspend;

///暂停，并且获取已经下载的数据
- (void)cancelByProducingResumeData:(HLENetWorkDownloadCancelByResumeData)resumeDataCompletion;

///重新开始下载,从头开始下载
- (void)resume;

@end

NS_ASSUME_NONNULL_END
